import request from '@/utils/request'
import { list } from "@/api/monitor/operlog"
const  PATH='/crm/business/track';
// 新增商机跟踪
export function addbusinesstrack(data) {
  return request({
    url: PATH,
    method: 'post',
    data: data
  })
}
// 转客户
export function tranfrom(data) {
  return request({
    url: PATH+`/tranfrom`,
    method: 'put',
    data: data
  })
}
// 踢回公海
export function giveBackBusiness(id,data) {
  return request({
    url: PATH+`/giveBack/${id}`,
    method: 'put',
    data
  })
}
// 捞取
export function resetBusiness(data) {
  return request({
    url: PATH+`/resetBusiness/${data.id}`,
    method: 'put',
    data
  })
}
// 商机跟踪记录
export function listBusinessTrack(query) {
 query.pageNum=1;
 query.pageSize=5;
 return list(query)
}
